<template>
  <FModal header="发布应用" width="560" ref="FModal" @ok="ok">
    发布说明:
    <div style="margin-top: 5px" @keydown="stopEvent">
      <el-input v-focus v-model="remark" rows="6" placeholder="请录入发布说明" type="textarea"/>
    </div>
  </FModal>
</template>

<script>
import FModal from '@/components/FModal';
export default {
  name: "PublishModal",
  components: {
    FModal
  },
  data() {
    return {
      remark: undefined
    }
  },
  methods: {
    setData() {
      this.remark = undefined
      this.$refs.FModal.open();
    },
    ok() {
      this.$emit('doPublish', this.remark)
      this.$refs.FModal.close();
    },
    stopEvent(e) {
      e.stopPropagation();
    },
  }
};
</script>

<style scoped>

</style>
